import request from "@/libs/axios.js";
// 财务
//项目工时列表
export function selectProjectListByReq(data) {
  return request({
    url:'/api/admin/costinfo/selectProjectListByReq',
    method:"post",
    data
  })
}
//项目成本核算
export function projectAccounting(data) {
    return request({
      url:'/api/admin/costinfo/projectAccounting',
      method:"post",
      data
    })
}
//项目成本核算多人计算
export function projectWholeCount(data) {
  return request({
    url:'/api/admin/costinfo/projectWholeCount',
    method:"post",
    data
  })
}
//人员核算
export function getPersonnelCostInfoList(data) {
  return request({
    url:'/api/admin/costinfo/getPersonnelCostInfoList',
    method:"post",
    data
  })
}
//人员核算多人计算
export function personnelWholeCount(data) {
  return request({
    url:'/api/admin/costinfo/personnelWholeCount',
    method:"post",
    data
  })
}
//添加费用
export function saveCostInfo(data) {
  return request({
    url:'/api/admin/costinfo/saveCostInfo',
    method:"post",
    data
  })
}
//修改费用
export function updateCostInfo(data) {
  return request({
    url:'/api/admin/costinfo/updateCostInfo',
    method:"post",
    data
  })
}
//项目成本核算导出
export function exportEmpInfo(data) {
  return request({
    url:'/api/admin/costinfo/exportEmpInfo',
    method:"post",
    responseType: "blob",
    data
  })
}
//人员成本核算导出
export function exportEmpPersonnelInfo(data) {
  return request({
    url:'/api/admin/costinfo/exportEmpPersonnelInfo',
    method:"post",
    responseType: "blob",
    data
  })
}
//统计饼图年和月
export function selectProjectCostStatistics(data) {
  return request({
    url:'/api/admin/costinfo/selectProjectCostStatistics',
    method:"post",
    data
  })
}
//统计折线图
export function selectProjectCostByYear(year) {
	return request({
		url: `/api/admin/costinfo/selectProjectCostByYear/${year}`,
		method: 'GET'
	})
}